<?php
$query="SELECT * FROM `anonce` WHERE `id`='2' LIMIT 1";
$sql = mysql_query($query) or die(mysql_error());
$data=mysql_fetch_array($sql);
$text=$data['text'];
$time=$data['time'];
$time=date("H:i d.m.Y",$time);
echo $text."<br />";


?>